package com.wms.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

import java.io.Serializable;

import java.math.BigDecimal;
import java.util.Date;


/**
* 平台订单表
* @TableName order_platform
*/
@Data
@ColumnWidth(value = 20)
@HeadRowHeight(value = 20)
public class OrderPlatform implements Serializable {

    /**
    * 平台订单号
    */
    private Integer id;
    /**
    * 平台id
    */
    @ExcelProperty(value = "平台名称")
    private String platformName;
    /**
    * 用户名称
    */
    @ExcelProperty(value = "用户名称")
    private String consumerName;
    /**
    * 商品id
    */
    @ExcelProperty(value = "商品名称")
    private String goodName;
    /**
    * 订单金额
    */
    @ExcelProperty(value = "订单金额")
    private BigDecimal amount;
    /**
    * 状态(0-待支付 1-已支付 2-已发货 3-已完成 4-已取消)
    */
    @ExcelProperty(value = "状态")
    private String status;
    /**
    * 创建时间
    */
    @ExcelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ExcelIgnore
    private String remark;
    @ExcelIgnore
    private String delFlag;
    // 物流方式
    @ExcelIgnore
    private String logistics;
}
